{% extends "index.html" %}


{% block inline_navi %}
    Mail > Rundmail senden
{% endblock %}

{% block box_title %}
	Rundmail senden
{% endblock %}
{% block box_content %}
	<p>
	    Hier kannst du eine Rundmail an ALL THE USERS senden.
	</p>
	
	<div id="detail_table">
	    <h3>Mailformular</h3>
	    <form action="{% url mail.views.circular %}" enctype="multipart/form-data" method="post">
	        {% csrf_token %}
	        {{ form.non_field_errors }}
	        <table>
	            <!-- Subject -->
	            <tr>
	                {% if form.subject.errors %}
	                <th class="form_error"><label for="id_subject">Titel erforderlich*:</label></th>
	                {% else %}
	                <th><label for="id_subject">Titel*:</label></th>
	                {% endif %}
	                <td>{{ form.subject }}</td>
	            </tr>
	            <!-- Content -->
	            <tr>
	                {% if form.content.errors %}
	                <th class="form_error"><label for="id_content">Inhalt erforderlich*:</label></th>
	                {% else %}
	                <th><label for="id_content">Inhalt*:</label></th>
	                {% endif %}
	                <td>{{ form.content }}</td>
	            </tr>
	            <tr>
	                <td colspan="3" align="center" style="padding-top: 10px;">
	                    <input type="submit" value="Verschicken" />
	                </td>
	            </tr>
	        </table>
	    </form>
	</div>
{% endblock %}